package com.hubei.car.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hubei.car.entity.MsProduct;
import com.hubei.car.entity.MsProductType;
import com.hubei.car.swaggerParam.MsProductQueryParam;
import com.hubei.car.swaggerParam.MsProductTypeQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MsProductMapper extends BaseMapper<MsProduct> {
    /**
     * 返回树形结构
     */
    List<MsProductType> queryMsProductTypeTree();

    IPage<MsProduct> queryMsProductPageXml(Page page, @Param("msProductQueryParam") MsProductQueryParam msProductQueryParam);

    IPage<MsProductType> queryMsProductTypePage(Page page, @Param("msProductTypeQueryParam") MsProductTypeQueryParam msProductTypeQueryParam);
}
